<template>
    <div>
        <van-nav-bar title="首页" />
        <van-tabs v-model:active="active">
            <van-tab title="热门">
                <van-search v-model="value" placeholder="请输入搜索关键词" @click="search"/>
            </van-tab>
            <van-tab title="推荐">内容 2</van-tab>
            <van-tab title="商城">内容 3</van-tab>
            <van-tab title="团购">内容 4</van-tab>
        </van-tabs>

    </div>
</template>

<script setup>
import { ref } from 'vue';
import router from '@/router';
const search=()=>{
    router.push('/search')
}

</script>

<style lang="scss" scoped></style>